package com.jxdinfo.hussar.activitidemo.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jxdinfo.hussar.activitidemo.bean.TdbYjMTypicalCase;
import com.jxdinfo.hussar.activitidemo.dao.TdbYjMTypicalCaseDao;
/**
 * 典型案例 模块服务实现类
 * 
 * @author zzd
 *
 */
@Service
public class TdbYjMTypicalCaseServiceImpl extends ServiceImpl<TdbYjMTypicalCaseDao, TdbYjMTypicalCase>
		implements ITdbYjMTypicalCaseService {

	@Autowired
	TdbYjMTypicalCaseDao dao;

	@Override
	public int insertinfo(TdbYjMTypicalCase info) {
		return dao.insertInfo(info);
	}

	@Override
	public int deleteById(TdbYjMTypicalCase info) {
		// TODO 自动生成的方法存根
		return dao.deleteById(info);
	}

	@Override
	public int update(TdbYjMTypicalCase info) {
		// TODO 自动生成的方法存根
		return dao.update(info);
	}

	@Override
	public Page<TdbYjMTypicalCase> selectByCondition(Page<TdbYjMTypicalCase> page, Map<String, Object> info) {
		List<TdbYjMTypicalCase> list = this.dao.selectByCondition(page, info);
		page.setRecords(list);
		String count = this.selectCountByCondition(info);
		page.setTotal(Integer.valueOf(count));
		return page;
	}

	@Override
	public int updateBatch(Map<String, Object> map) {
		return dao.updateBatch(map);
	}

	@Override
	public List initComplete(Map<String, Object> map) {
		// TODO Auto-generated method stub
		List list =this.dao.initComplete(map);

		return list;
	}

	@Override
	public String selectCountByCondition(Map<String, Object> map) {
		return dao.selectCountByCondition(map);
	}

	@Override
	public List getHanyuList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		List list = this.dao.getHanyuList(map);
		return list;
	}

	@Override
	public int updatePinyin(Map<String, Object> map) {
		// TODO Auto-generated method stub
		int re = this.dao.updatePinyin(map);
		return re;
	}
}
